<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>homework2</title>
</head>
<style>
    .bd{
        font-size: x-large;
    }
</style>
<body class="bd">
<pre>
    def fun(s):
        li = list(s)
        li.sort()
        return li


    print("输入两个单词:")
    s1 = input()
    s2 = input()
    print(fun(s1).__eq__(fun(s2)))

</pre>
</body>
</html>